[broadway] Remove unused query pointer message
authorAlexander Larsson <alexl@redhat.com>
Tue, 5 Apr 2011 08:52:40 +0000 (10:52 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 7 Apr 2011 08:03:16 +0000 (10:03 +0200)
gdk/broadway/broadway.c
gdk/broadway/broadway.h
gdk/broadway/broadway.js
gdk/broadway/gdkdisplay-broadway.c
gdk/broadway/gdkdisplay-broadway.h

index 604d18b23ed8683fc71d4219dd14b9a76e1263c9..0ddefde3b972de27cda1421c45fa8350d6f50364 100644 (file)
@@ -650,24 +650,6 @@ broadway_output_copy_rectangles (BroadwayOutput *output,  int id,
   free (buf);
 }
 
-guint32
-broadway_output_query_pointer (BroadwayOutput *output, int id)
-{
-  char buf[HEADER_LEN + 3];
-  guint32 serial;
-  int p;
-
-  serial = output->serial;
-  p = write_header (output, buf, 'q');
-  append_uint16 (id, buf, &p);
-
-  assert (p == sizeof (buf));
-
-  broadway_output_write (output, buf, sizeof (buf));
-
-  return serial;
-}
-
 void
 broadway_output_grab_pointer (BroadwayOutput *output,
                              int id,
index 0b9e9da5844d4b5cf471ddac2920e658c4b75a6f..ab8eae624058a118467e9ef45ca0d71d0efac9d0 100644 (file)
@@ -57,8 +57,6 @@ void            broadway_output_copy_rectangles (BroadwayOutput *output,
                                                 int             n_rects,
                                                 int             dx,
                                                 int             dy);
-guint32         broadway_output_query_pointer   (BroadwayOutput *output,
-                                                int id);
 void            broadway_output_grab_pointer    (BroadwayOutput *output,
                                                 int id,
                                                 gboolean owner_event);
index 70c116420d7f0376d6db8c8c051b4f7c059e331e..4b1cb3259ed9205e25884775c7388e6116329245 100644 (file)
@@ -348,15 +348,6 @@ function handleCommands(cmdObj)
            flushSurface(surfaces[id]);
            break;
 
-       case 'q': // Query pointer
-           var id = base64_16(cmd, i);
-           i = i + 3;
-
-           var pos = getPositionsFromAbsCoord(lastX, lastY, id);
-
-           sendInput ("q", [pos.rootX, pos.rootY, pos.winX, pos.winY, windowWithMouse]);
-           break;
-
        case 'g': // Grab
            var id = base64_16(cmd, i);
            i = i + 3;
index 16bd99e22598b3f8603df45a9e70bfd9b72c3554..ae2d964aa35da0a44591b4fad93005e2875d9088 100644 (file)
@@ -248,18 +248,6 @@ parse_input_message (BroadwayInput *input, const char *message)
     msg.grab_reply.res = strtol(p, &p, 10);
     break;
 
-  case 'q':
-    msg.query_reply.root_x = strtol(p, &p, 10);
-    p++; /* Skip , */
-    msg.query_reply.root_y = strtol(p, &p, 10);
-    p++; /* Skip , */
-    msg.query_reply.win_x = strtol(p, &p, 10);
-    p++; /* Skip , */
-    msg.query_reply.win_y = strtol(p, &p, 10);
-    p++; /* Skip , */
-    msg.query_reply.window_with_mouse = strtol(p, &p, 10);
-
-    break;
   default:
     g_printerr ("Unknown input command %s\n", message);
     break;
index 25b0397a93c66dc766555580a619b693146ec3a0..b791579e50bd31e16eb9823b21294d88403191f3 100644 (file)
@@ -87,15 +87,6 @@ typedef struct {
   int res;
 } BroadwayInputGrabReply;
 
-typedef struct {
-  BroadwayInputBaseMsg base;
-  int root_x;
-  int root_y;
-  int win_x;
-  int win_y;
-  guint32 window_with_mouse;
-} BroadwayInputQueryReply;
-
 typedef union {
   BroadwayInputBaseMsg base;
   BroadwayInputPointerMsg pointer;
@@ -104,7 +95,6 @@ typedef union {
   BroadwayInputScrollMsg scroll;
   BroadwayInputKeyMsg key;
   BroadwayInputGrabReply grab_reply;
-  BroadwayInputQueryReply query_reply;
 } BroadwayInputMsg;
 
 struct _GdkBroadwayDisplay